package com.lagou.service;

import com.lagou.bean.Student;
import com.lagou.dao.StudentDao;
import com.lagou.factory.StudentDaoFactory;

public class StudentSerive {
    StudentDao studentDao;

    public StudentSerive() {
        this.studentDao = StudentDaoFactory.getStudentDao();
    }
    public int addSeudent(Student student){return studentDao.addStudent(student); }
    public int delStudent(String id){return studentDao.delStudent(id);}
    public int updateStudent(Student student,String id){ return studentDao.updateStudent(student,id);}
    public Student selectStudent(String id){return studentDao.selectStudent(id);}
}
